home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Installer SDK Cornucopia 1.0.2 / DeveloperInterfaces / CIncludes / TargetInfoMgt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-30  |  1.0 KB  |  55 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        TargetInfoMgt.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Copyright:    © 1993-1996 by Apple Computer, Inc., all rights reserved.
  7.  
  8. */
  9.  
  10.  
  11.  
  12. #ifndef __TargetInfoMgt__
  13. #define __TargetInfoMgt__
  14.  
  15. #ifndef __Files__
  16. #include <Files.h>
  17. #endif
  18.  
  19.  
  20. typedef struct {
  21.     FSSpec            fSrcFSSpec;
  22.     long            fSrcDataType;
  23.     Str31            fTgtFileName;
  24.     short            fTgtFinderAttrs;
  25.     long            fTgtDataForkSize;
  26.     long            fTgtRsrcForkSize;
  27.     long            fTgtCreationDate;
  28.     ResType            fTgtFileType;        // Not supported in 4.0.0
  29.     ResType            fTgtFileCreator;    // Not supported in 4.0.0
  30.     long            fTgtModDate;        // Not supported in 4.0.0
  31. } TgtFileInfoType;
  32.  
  33. typedef struct {
  34.     FSSpec            fSrcFSSpec;
  35.     long            fSrcDataType;
  36.     OSType            fSrcRsrcType;    
  37.     short            fSrcRsrcID;
  38.     OSType            fTgtRsrcType;    
  39.     short            fTgtRsrcID;
  40.     short            fTgtRsrcAttrs;
  41.     long            fTgtRsrcSize;
  42. } TgtRsrcInfoType;
  43.  
  44. typedef union {
  45.     TgtFileInfoType            fFileInfo;
  46.     TgtRsrcInfoType            fRsrcInfo;
  47. } TargetInfoPB, *TargetInfoPBPtr;
  48.  
  49. #define    kDataTypeIsFile    -1
  50. #define    kDataTypeIsRsrc    1
  51.  
  52. typedef long    (*TargetInfoProcPtr)( TargetInfoPBPtr );        
  53.                             
  54. #endif
  55.